import ajaxFunc from "./axios";

//分类页面
export function typesApi() {
    return ajaxFunc({
        url: '/product/types',
    })
}

//按类型获取产品列表
export function typesListApi(params) {
    return ajaxFunc({
        url: '/product/typelist',
        params
    })
}

//往购物车中添加商品
export function cartAddApi(data) {
    return ajaxFunc({
        url: '/cart/add',
        method: 'POST',
        data
    })
}